//
//  HMLunBoView.m
//  仿真开发
//
//  Created by jieChen on 17/3/22.
//  Copyright © 2017年 B.HOPE. All rights reserved.
//

#import "HMLunBoView.h"
#import "AdvertisingScrollView.h"
#import <Masonry.h>

@implementation HMLunBoView

- (instancetype) initWithCoder:(NSCoder *)aDecoder {
    
    if (self = [super initWithCoder:aDecoder]) {
        [self setCycleView];
    }
    return self;
    
}


- (void) setCycleView {
    
    NSArray *imagesArray = @[@"http://iosapi.itcast.cn/images/4316336854579796.jpg",@"http://iosapi.itcast.cn/images/4315639523829152.jpg",@"http://iosapi.itcast.cn/images/3429603970515530.jpg"];
    
    AdvertisingScrollView *scrollView = [[AdvertisingScrollView alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, 250)];
    
    [scrollView initializationUIWithDataArray:imagesArray];
    
    [scrollView setAnimationDuration:1.5];
    [self addSubview:scrollView];

}

@end
